﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucComment" TagName="Comment" Src="../Common/Inc/Comment.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Com1020m.aspx.cs" Inherits="Updms.Com.Com1020m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Com1020m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area" runat="server">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Com1020m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="22%"><asp:Literal ID="ltr_menu_div" Text="구분" runat="server" /></td>
					<td class="ctl" width="77%"><asp:RadioButtonList id="rbl_menu_div" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow" OnSelectedIndexChanged="rbl_menu_div_SelectedIndexChanged" AutoPostBack="true"></asp:RadioButtonList></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table id="table_high_pgm" class="table_detail" runat="server">
				<tr>
					<td class="lbl_c" width="90%"><asp:Literal ID="ltr_high_pgm_list" Text="상위메뉴" runat="server" /></td>
					<td class="lbl_c" width="10%"><asp:Literal ID="ltr_high_view_order" Text="이동" runat="server" /></td>
				</tr>
				<tr>
					<td><asp:listbox id="lbox_high_pgm_list" runat="server" width="100%" height="200" SelectionMode="Single" CssClass="che"></asp:listbox></td>
					<td class="ctl"><table cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td style="padding:0 0 0 14px;"><asp:LinkButton id="lbtn_high_pgm_up_label" class="sbtn sbtn_arrow_t div_left" runat="server" ToolTip="위로" OnClick="lbtn_high_pgm_up_label_Click" /></td>
							</tr>
							<tr>
								<td style="height:20px;"></td>
							</tr>
							<tr>
								<td style="padding:0 0 0 14px;"><asp:LinkButton id="lbtn_high_pgm_down_label" class="sbtn sbtn_arrow_b div_left" runat="server" ToolTip="아래로" OnClick="lbtn_high_pgm_down_label_Click" /></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 디테일2 시작 -->
			<table id="table_pgm" class="table_detail" runat="server">
				<tr>
					<td class="lbl_c" width="90%"><asp:Literal ID="ltr_pgm_list" Text="메뉴" runat="server" /></td>
					<td class="lbl_c" width="10%"><asp:Literal ID="ltr_view_order" Text="이동" runat="server" /></td>
				</tr>
				<tr>
					<td>
						<div class="div_scroll" style="height:200px; overflow-y:auto;" onscroll="javascript:setScroll(this);" id="div_detail_2">
							<asp:listbox id="lbox_pgm_list" runat="server" width="100%" Height="1900" SelectionMode="Single" CssClass="che"></asp:listbox>
						</div>
					</td>
					<td class="ctl"><table cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td style="padding:0 0 0 14px;"><asp:LinkButton id="lbtn_up_label" class="sbtn sbtn_arrow_t div_left" runat="server" ToolTip="위로" OnClick="lbtn_up_label_Click" /></td>
							</tr>
							<tr>
								<td style="height:20px;"></td>
							</tr>
							<tr>
								<td style="padding:0 0 0 14px;"><asp:LinkButton id="lbtn_down_label" class="sbtn sbtn_arrow_b div_left" runat="server" ToolTip="아래로" OnClick="lbtn_down_label_Click" /></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!-- 디테일2 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->
				<ucComment:Comment id="Comment" TagPrefixs="Com1020m" runat="server"></ucComment:Comment>
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<input id="h_scroll_pos" type="hidden" name="h_scroll_pos" value="0" runat="server" />
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>

<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		msgBox.confirm(getMsg(MSG_CFM_000), doSave); //저장하시겠습니까?
		return false;
	}

	//onscroll 이벤트 발생시 스크롤바 위치값 실시간 저장
	function setScroll(val) {
		$("h_scroll_pos").value = val.scrollTop;
	}

	//코드비하인드에서 RegisterStartupScript 매서드를 사용해 호출할 스크롤 위치 셋팅 함수
	function scrollTo() {
		var vScrollPos = $F("h_scroll_pos");  // PostBack 발생전 스크롤바 위치값

		if($("div_detail_2") != null){ //하위메뉴에서만 적용
			$("div_detail_2").scrollTop = vScrollPos;  // GridView를 감싼 Div 컨트롤의 scrollTop 속성값 셋팅
		}
	}
</script>

</body>
</html>